<?xml version="1.0" encoding="windows-1251"?>

<xsl:stylesheet version="1.0"  
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 
<xsl:param name="xsName"/>


<xsl:template match="/">
<div class='fenster-content'>

<xsl:for-each select="apm/apps/app[ @name=$xsName ]">

		<table border="1" cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<th colspan="2"><xsl:value-of select="@name"/></th>
			</tr>
			<tr>
				<td colspan="2"><xsl:value-of select="@desc"/></td>
			</tr>
			<xsl:if test="@comment">
				<tr><th colspan="2">coments</th></tr>
				<tr><td colspan="2"><xsl:value-of select="@comment"/></td></tr>
			</xsl:if>
			<xsl:for-each select="owner">
				<xsl:if test="position()=1"><tr><th colspan="2">owners</th></tr></xsl:if>
				<tr><td colspan="2"><xsl:value-of select="@name"/></td></tr>
			</xsl:for-each>
			<tr>
				<th>work-time</th>
				<td><xsl:value-of select="@sla-work-time"/></td>
			</tr>
			<tr>
				<th>down-time</th>
				<td><xsl:value-of select="@sla-down-time"/></td>
			</tr>
			<xsl:for-each select="manager">
				<xsl:if test="position()=1"><tr><th colspan="2">managers</th></tr></xsl:if>
				<tr>
					<td><xsl:value-of select="@type"/></td>
					<td><xsl:value-of select="@name"/></td>
				</tr>
			</xsl:for-each>
		</table>

</xsl:for-each>



</div>

</xsl:template>
</xsl:stylesheet>